<template>
	<view class="content">
		<image class="logo" :src="logImg"></image>
		<view class="title" @click="toTest">资料上传</view>
		<view class="title" @click="toCanvas">签名</view>
	</view>
</template>

<script>
import logImg from '@/static/logo.png'
export default {
	data() {
		return {
			title: '测试',
			logImg
		}
	},
	onLoad() {
		console.log('index onLoad')
	},
	onShow() {
		console.log('index onShow')
		console.log('document', document)
		document.addEventListener("visibilitychange", () => {
			console.log('visibilitychange')
		})
	},
	methods: {
		toTest() {
			uni.navigateTo({
				url: '/pages/img/index'
			})
		},
		toCanvas() {
			uni.navigateTo({
				url: '/pages/canvas-test/index'
			})
		}
	}
}
</script>

<style>
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.logo {
	height: 200rpx;
	width: 200rpx;
	margin: 200rpx auto 50rpx auto;
}

.text-area {
	display: flex;
	justify-content: center;
}

.title {
	font-size: 36rpx;
	color: #8f8f94;
}
</style>
